Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

154
Vistas
HTMLunit-"Error: [MobX] Proxy not available"

I am trying to use htmlunit to get data from a javascript website. Currently, I am solely trying to call the site with webClient.getPage, which is already throwing an exception.

    public static void main(String[] args) throws Exception {

        final WebClient webClient = new WebClient();

    webClient.getOptions().setThrowExceptionOnScriptError(false);
    webClient.setJavaScriptTimeout(10000);
    webClient.getOptions().setJavaScriptEnabled(true);
    webClient.setAjaxController(new NicelyResynchronizingAjaxController());
    webClient.getOptions().setTimeout(10000);

    final HtmlPage page1 = webClient.getPage("[my-site-url-here]");


}

I am getting the following exception:

    ======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.JavaScriptException]
com.gargoylesoftware.htmlunit.ScriptException: Error: [MobX] Proxy not available (https://[my-site-here]/static/js/8.107d4023.chunk.js#1)

As seen in my code snippet, I have already applied options observed in other threads regarding js errors when using htmlunit. I am not using a proxy, the website is using cloudflare. Could this be the problem? Thank you in advance.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

[MobX] Proxy not available

looks like the js code notices the (currently) missing Proxy support in HtmlUnit/Rhino's javascript engine. Usually pages doing some js feature checks in the beginning and reporting problems (or even better using only the available features).

Please open an issue for HtmlUnit and if possible include the page url to help us to reproduce the problem.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda